/// id : "209"
/// name : "优待抚恤"
/// alias : "bdjw/yy_youdaifuxu.png"
/// parent : "199"
/// type : "article"

class NewsCategory {
  NewsCategory({
      String? id, 
      String? name, 
      String? alias, 
      String? parent, 
      String? type,}){
    _id = id;
    _name = name;
    _alias = alias;
    _parent = parent;
    _type = type;
}

  NewsCategory.fromJson(dynamic json) {
    _id = json['id'];
    _name = json['name'];
    _alias = json['alias'];
    _parent = json['parent'];
    _type = json['type'];
  }
  String? _id;
  String? _name;
  String? _alias;
  String? _parent;
  String? _type;
NewsCategory copyWith({  String? id,
  String? name,
  String? alias,
  String? parent,
  String? type,
}) => NewsCategory(  id: id ?? _id,
  name: name ?? _name,
  alias: alias ?? _alias,
  parent: parent ?? _parent,
  type: type ?? _type,
);
  String? get id => _id;
  String? get name => _name;
  String? get alias => _alias;
  String? get parent => _parent;
  String? get type => _type;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['name'] = _name;
    map['alias'] = _alias;
    map['parent'] = _parent;
    map['type'] = _type;
    return map;
  }

}